package com.mybatis.domain;

import java.io.Serializable;
import java.util.StringJoiner;

public class BlogComment implements Serializable {
    private int id;
    private String title;
    private int blogId;
    private String body;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", BlogComment.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("title='" + title + "'")
                .add("blogId=" + blogId)
                .add("body='" + body + "'")
                .toString();
    }
}
